{extend name="public:member" /}
{block name="content"}
<div id="member_content">
	<div class="allWrap">
		{include file="public:member_menu" /}
		<div id="right_content">
			<div id="member-nav" class="clearfix">
				<ul id="top-tag" class="order-list">
					<li class="fl">						
						<a href="{:url('comment/index')}">待评价</a>								
					</li>	
					<li class="fl on">						
						<a>已评价({$list->total()|default="0"})</a>								
					</li>	
				</ul>
			</div>
			
			<table class="table boxorder comment_list">
				<thead>
					<tr>					
						<th style="width:430px;">商品信息</th> 
						<th>订单号</th>
														
						<th style="text-align:left;">评价内容</th>	
					</tr>
				</thead>
				<tbody>
						{volist name="list" id="v" empty="$empty"}
						<tr>						
							<td style="text-align:left;padding-left:20px;">								
								<dl>
									<dt><a href="{:get_goods_type_info(array('type'=>$v['type'],'goods_id'=>$v['goods_id']),'url')}">
										<img src="IMG_ROOT{$v.goods_image|resize=60,60}"></a>
									</dt>
									<dd>
										<a href="{:get_goods_type_info(array('type'=>$v['type'],'goods_id'=>$v['goods_id']),'url')}">
											{$v.goods_name}
										</a>
									</dd>
									<dd style="color:red;">{:get_goods_type_info(array('type'=>$v['type'],'price'=>$v['goods_price']),'price')}</dd>
								</dl>
							</td>
							<td>
								
								<a href='{:url("OrderMember/show_order",array("id"=>$hashids->encode($v["order_id"])))}'>
								{$v.order_num_alias}
								</a>
							
							</td>
							
							<td style="text-align:left;">
								<p>{$v.content}</p>
								<div class="raty" data='{$v.score}'></div>
							</td>
						</tr>
						{/volist}	
						
						<tr>
							<td colspan="20" class="page">{$list->render()}</td>
						</tr>
				</tbody>
				
			</table>
						
		</div>
	</div>
</div>
{/block}
{block name="javascript"}
<script src="__PUBLIC__/js/jquery/raty/jquery.raty.min.js"></script>
<script>
$('.raty').each(function(i){
		var score=$(this).attr('data');
		$(this).raty({
	   		starHalf: '__PUBLIC__/js/jquery/raty/img/star-half.png',
	   		starOff: '__PUBLIC__/js/jquery/raty/img/star-off.png',
	  		starOn : '__PUBLIC__/js/jquery/raty/img/star-on.png',
	   		readOnly: true, 
	   		score: score 
   		});
		
	});		
</script>
{/block}
